<template>
  <div v-if="isShow">
    <div class="bgColor"></div>
    <div class="cus-dialog" v-if="isShow">
      <div class="content">{{ content.message }}</div>
      <img src="@/assets/close.png" alt="" @click="close">
      <div class="footer-btn">
        <el-button  class="cancel-btn" @click="close"> {{ content.cancelText }} </el-button>
        <el-button  class="confirm-btn" @click="ok"> {{ content.confirmText }} </el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "cusconfirmCmp",
  data() {
    return {
      // 弹窗内容
      isShow: true,
      content: {
        message: '确定要删除该数据吗？',
        cancelText: '取 消',
        confirmText: '确 定',
        show: false
      }
    };
  },
  methods: {
    close() {},
    ok() {}
  }
}
</script>

<style scoped>
.cus-dialog{
  border-radius: 5px;
  background: #ffffff;
  width: 1111px;
  height: 429px;
  opacity: 0.9;
  position: relative;
  top:30%;
  left: 0;
  right: 0;
  margin: 0 auto;
  box-shadow: 0px 0px 29px 0px rgba(0,50,139,0.07);
  z-index: 101;
}
.content{
  padding: 120px 170px 90px 170px;
  font-size: 36px;
  color: #333333;
}
.confirm-btn{
  /*text-align: center;*/
  width: 249px;
  height: 103px;
  background: #fe5c76;
  font-size: 30px;
  color: white;
  border-radius: 5px;
}
.cancel-btn{
  width: 249px;
  height: 103px;
  border: #fe5c76 1px solid;
  border-radius: 5px;
  font-size: 30px;
  color: #fe5c76;
  margin-right: 46px;
}
.footer-btn{
  text-align: center;
  padding-bottom: 78px;
}
img{
  position: absolute;
  top: 60px;
  right: 46px;
  cursor: pointer;
}
.bgColor {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  outline: 0;
  -webkit-overflow-scrolling: touch;
  filter: alpha(opacity=60);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}
</style>